<style>
#summary .block-title {
	margin-bottom: -35px;
}
#summary .block {
	margin-bottom: 20px;
	margin-left: 5px;
	margin-right: 5px;
}
</style>
<div id="summary">
	<div class="block">
		<div class="block-title"><?=$block_title?> - 近二十天</div>
		
		<div></div>
		<?php $this->widget('zii.widgets.grid.CGridView', array(
			'id'=>'day-diary-log-grid',
			'dataProvider'=>$dailyProvider,
			'columns'=>array(
				array('name' => '日期', 'value' => '$data->adddate'),
				array('name' => '会员注册', 'value' => '$data->joinmb'),
				array('name' => '会员激活', 'value' => '$data->vjoinmb'),
				array('name' => '总点击', 'value' => '$data->totalclick'),
				array('name' => '独立IP', 'value' => '$data->validclick'),
				array('name' => '订单数', 'value' => '$data->ordernum'),
				array('name' => '订单金额', 'value' => '$data->orderamount'),
				array('name' => '首次订单数', 'value' => '$data->ordernum'),
			),
			
		)); ?>
	</div>
	
	<div class="block">
		<div class="block-title"><?=$block_title?> - 近二十周</div>
		
		<div></div>
		<?php $this->widget('zii.widgets.grid.CGridView', array(
			'id'=>'week-diary-log-grid',
			'dataProvider'=>$weekProvider,
			'columns'=>array(
				array('name' => '日期', 'value' => '"第".$data->yearweek."周"'),
				array('name' => '会员注册', 'value' => '$data->joinmb'),
				array('name' => '会员激活', 'value' => '$data->vjoinmb'),
				array('name' => '总点击', 'value' => '$data->totalclick'),
				array('name' => '独立IP', 'value' => '$data->validclick'),
				array('name' => '订单数', 'value' => '$data->ordernum'),
				array('name' => '订单金额', 'value' => '$data->orderamount'),
				array('name' => '首次订单数', 'value' => '$data->ordernum'),
			),
			
		)); ?>
	</div>
	
	
	<div class="block">
		<div class="block-title"><?=$block_title?> - 近二十月</div>
		
		<div></div>
		<?php $this->widget('zii.widgets.grid.CGridView', array(
			'id'=>'month-diary-log-grid',
			'dataProvider'=>$monthProvider,
			'columns'=>array(
				array('name' => '日期', 'value' => 'date("Y-m", strtotime($data->adddate))'),
				array('name' => '会员注册', 'value' => '$data->joinmb'),
				array('name' => '会员激活', 'value' => '$data->vjoinmb'),
				array('name' => '总点击', 'value' => '$data->totalclick'),
				array('name' => '独立IP', 'value' => '$data->validclick'),
				array('name' => '订单数', 'value' => '$data->ordernum'),
				array('name' => '订单金额', 'value' => '$data->orderamount'),
				array('name' => '首次订单数', 'value' => '$data->ordernum'),
			),
			
		)); ?>
	</div>
</div>